﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NetBay.Core.BusinessEntities.Workflow
{
    [DataContract]
    public class WorkflowGenericItem : WorkflowItem
    {

        private ItemType _itemsType = ItemType.Actions;

        #region Constructors

        public WorkflowGenericItem()
        {
        }

        /// <summary>
        /// Only for error
        /// </summary>
        /// <param name="ErrorMessage"></param>
        public WorkflowGenericItem(string errorMessage, Exception applicationException = null)
            : base(errorMessage, applicationException)
        {
        }
        #endregion

        /// <summary>
        /// Gets or sets the type of the item.
        /// </summary>
        /// <value>The type of the item.</value>
        public override ItemType ItemType
        {
            get
            {
                return _itemsType;
            }
            set
            {
                _itemsType = value;
            }
        }
    }
}
